<style>

</style>
<template>
    <span> <slot>
            </slot></span>
</template>
<script>
    Rap.define('', '', function () {
        return {
            name: 'ly-table-header',
            props: {

            },
            data: function () {
                return {

                }
            },
            destroyed:function () {
                this.owner.header=null;
            },
            computed: {
                owner: function () {
                    var parent = this.$parent;
                    while (parent && !parent.tableId) {
                        parent = parent.$parent;
                    }
                    return parent;
                }
            }, mounted: function () {
                var owner = this.owner;
                owner.header={render: this.$scopedSlots.default};
            }, render: function (h) {
                return h('span', {'class': 'ly-table-header-hidden'}, this.$slots.default);
            }

        }
    });
</script>
